<?php 
 include_once '../../conn/all.php';
 session_start();
	$user=$_SESSION["unc"];
 $class=$_GET["id"];
 $data=array(
 		"name"=>"",
 		"user"=>$user
 );
 $res=sql("addid", "colum", $data, "");
 if ($class=='0') {
 ?>
		 	<tr class="mouse click column_1">
		 	<td class="list-text">
		 	<input name='id' type='checkbox' onClick="list_all($(this),1);" id="id" value='<?=$res; ?>' />
		 	</td>
		 	<td class="list-text">
		 	<input type="text" class="text no_order" value="" name="no_order_<?=$res; ?>" />
		 	
		 	</td>
		 	<td class="list-text blues" style="text-align:left;">
		 	<img src='../templates/met/images/columnnox.gif' style='margin:0px 5px;' /><input type="text" class="text nonull" value="" name="name_<?=$res; ?>" />&nbsp;
		 	</td>
		 	<td class="list-text">
		 	<select name="nav_<?=$res; ?>">
		 	
		 	<option value="0" >不显示</option>
 		
 					<option value="1" selected='selected'><font class='red'>头部主导航条</font></option>
 		
 					<option value="2" ><font class='blue'>尾部导航条</font></option>
 		
 					<option value="3" ><font class='green'>都显示</font></option>
 		
 				</select>
 				<a class="none"></a>
 				</td>
 	
 				<td class="list-text">
 					<select name="module_<?=$res; ?>" >

<option value="1" selected='selected'>文章模块</option>

<option value="2" >套餐报价</option>

<option value="3" >文章列表</option>

<option value="4" >图片模块</option>

<option value="5" >视频模块</option>

<option value="6" >公告模块</option>

<option value="7" >抽奖模块</option>

<option value="8" >反馈系统</option>

<option value="9" >友情链接</option>

            </select></td>
 				<td class="list-text">tempel</td>
 				<td class="list-text"><input type="text" class="text no_order" value="" name="index_num_<?=$res; ?>" /></td>
 				
 	
 		
 				<td class="list-text">
 					<select name="access_<?=$res; ?>">
 		
 				<option value="0" selected='selected'>不限</option>
 		
 				<option value="1" >普通会员</option>
 		
 				<option value="2" >代理商</option>
 		
 				<option value="3" >管理员</option>
 		
 				</select>
 				<a class="none"></a>
 				</td>				
 	  					
 				<td class="list-text">
 					<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$res; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$res; ?>" onClick="return linkSmit($(this),1);" >删除</a></div>
 				</td>
 	        </tr>
 <?php 
 }else{
	$data=array(
		"name"=>"",
		"class"=>$class
	);
	sql("u", "colum", $data, "where id=$res");
 ?>
 
 		 <tr id="class_<?=$res; ?>"  class="mouse click columnz_<?=$class; ?> column_2">
			<td class="list-text2">
				<input name='id' type='checkbox' onClick="linkage($(this),'bgid_<?=$res; ?>');" id="id" value='<?=$res; ?>' bgid_<?=$class; ?>" />
			</td>
			<td class="list-text2">
				<input type="text" class="text no_order" value="" name="no_order_<?=$res; ?>" />
			
			</td>
            <td class="list-text2" id="tr<?=$res; ?>" style="text-align:left; padding-left:10px;">
				<div style='float:left; width:12px; height:10px;'></div>
				<img src='../templates/met/images/bg_column.gif' style="position:relative; top:6px;" />
				
				<input type="text" class="text nonull" value="" name="name_<?=$res; ?>" />&nbsp;<!--  <a href='add.htm?lang=cn&id=<?=$res; ?>&type=3&action=add' onclick="return addcolumn($(this),'<?=$res; ?>',3,'../templates/met/images');" class='hovertips'><span>添加三级栏目</span></a>-->
			</td>
            <td class="list-text2">
			<select name="nav_<?=$res; ?>">
	
				<option value="0" >不显示</option>
	
				<option value="1" selected='selected'><font class='red'>头部主导航条</font></option>
	
				<option value="2" ><font class='blue'>尾部导航条</font></option>
	
				<option value="3" ><font class='green'>都显示</font></option>
	
			</select>
			<a class="none"></a>
			</td>

            <td class="list-text2">
            			<select name="module_<?=$res; ?>" >

<option value="1" selected='selected'>文章模块</option>

<option value="2" >套餐报价</option>

<option value="3" >文章列表</option>

<option value="4" >图片模块</option>

<option value="5" >视频模块</option>

<option value="6" >公告模块</option>

<option value="7" >抽奖模块</option>

<option value="8" >反馈系统</option>

<option value="9" >友情链接</option>

            </select>
            </td>
			<td class="list-text2">tempel</td>
			<td class="list-text2"><input type="text" class="text no_order" value="" name="index_num_<?=$res; ?>" /></td>
			

	
			<td class="list-text2">
				<select name="access_<?=$res; ?>">
	
			<option value="0" selected='selected'>不限</option>
	
			<option value="1" >普通会员</option>
	
			<option value="2" >代理商</option>
	
			<option value="3" >管理员</option>
	
			</select>
			<a class="none"></a>
			</td>	
	

			<td class="list-text2">
				<div style='white-space:nowrap;'><a href="column_editor.php?lang=cn&id=<?=$res; ?>">编辑</a>&nbsp;&nbsp;<a href="../control.php?oper=column_del&id=<?=$res; ?>" onClick="return linkSmit($(this),1);">删除</a></div>
			</td>
        </tr>
 
 <?php
 }
?>
